package com.sciencep.pro.core.service;

import com.baomidou.mybatisplus.extension.plugins.pagination.Page;
import com.baomidou.mybatisplus.extension.service.IService;
import com.sciencep.pro.common.domain.QueryRequest;
import com.sciencep.pro.common.domain.ResponseResult;
import com.sciencep.pro.core.domain.dto.assignment.AssignmentTo;
import com.sciencep.pro.core.domain.dto.project.ProAssignmentTO;
import com.sciencep.pro.core.domain.dto.user.UserDetail;
import com.sciencep.pro.core.domain.entity.ProAssignment;

/**
 * @author Sciencep
 */
public interface IProAssignmentService extends IService<ProAssignment> {

    boolean saveAssign(ProAssignmentTO proAssignment, UserDetail userDetail);

    boolean updateReadType(ProAssignmentTO proAssignmentTO, UserDetail userDetail);

    Page<AssignmentTo> getReviewList(QueryRequest queryRequest,AssignmentTo assignmentTo);

    int updateReview(AssignmentTo assignmentTo);
}
